<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>acceptance_data</title>
		<link href="<%=path%>/pattern/cm/css/add.css" type="text/css"
			rel="stylesheet" />
	</head>
	<body>
		<form action="<%=path%>/programChange.action?type=open" method="post">
			<div class="layout">
				<div class="title">
					启动程序
				</div>

				<div id="content">

					<div class="four_columns">
						<div class="four_columns_text">
							程序状态:
						</div>

						<s:iterator value="list">

							<div class="four_columns_input" style="color: red">
								<s:if test="#session.state == 'close'">
						 		
						 		&nbsp;&nbsp;&nbsp;&nbsp;关闭中！  
						 		</s:if>
								<s:if test="#session.state == 'open'">
						 		&nbsp;&nbsp;&nbsp;&nbsp;运行中！  
						 		</s:if>
							</div>
							<div class="clear"></div>
							<div class="four_columns">
								  <div class="four_columns_text">
							&nbsp;&nbsp;&nbsp;&nbsp;
						</div>
								<div class="four_columns_input">

									<input type="hidden" name="programpath" style="width: 400px"
										value="D:\\cmd.exe" />

								</div>
							</div>
							  <div class="clear"></div>
							<div class="four_columns">

								<div class="four_columns_text">
									操作:
								</div>
								<div class="four_columns_input">
									<input type="submit" class="but" value="运行程序" />
								</div>
							</div>
							<div class="clear"></div>
						</s:iterator>
					</div>
				</div>
			</div>
		</form>
	</body>

</html>


